
let { Schema, model } = require("mongoose");//配置数据库和模型来修改数据库集合和内容


//学生信息的结构


let studentSchema = new Schema({
  phone: String,
  name: String,
  gender: String,
  avatar: String, 
  password:String
  });
  let studentModel = model("studentModel", studentSchema, "students"); //模型名。模型架构，数据库里面的集合名

  module.exports= {studentModel}